#ifndef __RESPONSE_H
#define __RESPONSE_H

#ifdef __cplusplus
 extern "C" {
#endif
	 
#include "System.h"

	 
#include "Protocol.h"
#if ENABLE_MEMMAN
	#include "SysList.h"	
		
	#define RESP_MEM_BLOCK		DTCM_NUM	
#else
	#define RESP_DATA_MAX		3	 
#endif

typedef struct{
	FrameData_T	frame;
	UCHAR 	type;
	UCHAR 	port;
    UCHAR 	flag;
	UCHAR   waitCnt;
	UINT  	waitTime;
#if ENABLE_MEMMAN
	SysList_T		list;
#endif
}ResData_T;



void 	Response_Init(void);

UINT8 	Response_Inser(UINT8 _type,FrameData_T *_frame,UINT8 _port);
UINT8 	Response_Clear(UINT8 CmdID);


#endif

	 
#ifdef __cplusplus
}
#endif

